home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / renderTests / lines_and_points_multiAppearanc < prev    next >
Encoding:
Text File  |  2000-05-30  |  2.4 KB  |  102 lines

  1. #VRML V2.0 utf8
  2.  
  3. # This group uses regular appearance nodes
  4. Transform {
  5.   translation -4 0 0
  6.   children    [
  7.     Shape {
  8.         appearance    Appearance {
  9.           material    Material {
  10.             emissiveColor    1 1 1
  11.           }
  12.         }
  13.  
  14.         geometry    PointSet {
  15.             pointSize 4
  16.           coord    Coordinate {
  17.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  18.           }
  19.           color    Color {
  20.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  21.           }
  22.         }
  23.     }
  24.     Shape {
  25.         appearance    Appearance {
  26.           material    Material {
  27.             emissiveColor    1 1 1
  28.           }
  29.         }
  30.  
  31.         geometry    IndexedLineSet {
  32.             pointSize 4
  33.           coord    Coordinate {
  34.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  35.           }
  36.           coordIndex [ 0, 1, 2, 3, -2 ]
  37.           color    Color {
  38.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  39.           }
  40.           
  41.         }
  42.     }
  43.     ]
  44.  
  45. # This group uses MultiAppearance nodes with no maps
  46. Transform {
  47.   translation 0 0 0
  48.   children    [
  49.     Shape {
  50.         appearance    MultiAppearance {
  51.           material    Material {
  52.             emissiveColor    1 1 1
  53.           }
  54.         }
  55.  
  56.         geometry    PointSet {
  57.             pointSize 4
  58.           coord    Coordinate {
  59.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  60.           }
  61.           color    Color {
  62.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  63.           }
  64.         }
  65.     }
  66.     Shape {
  67.         appearance    MultiAppearance {
  68.           material    Material {
  69.             emissiveColor    1 1 1
  70.           }
  71.         }
  72.  
  73.         geometry    IndexedLineSet {
  74.             pointSize 4
  75.           coord    Coordinate {
  76.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  77.           }
  78.           coordIndex [ 0, 1, 2, 3, -2 ]
  79.           color    Color {
  80.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  81.           }
  82.           
  83.         }
  84.     }
  85.     ]
  86.  
  87. # This group uses MultiAppearance nodes with (extraneous) maps
  88. Transform {
  89.   translation 4 0 0
  90.   children    [
  91.     Shape {
  92.         appearance    MultiAppearance {
  93.           material    Material {
  94.             emissiveColor    1 1 1
  95.           }
  96.           diffuseMap DiffuseMap { texture ImageTexture { url diffuse_s3d.jpg }}
  97.           bumpLevelMap BumpLevelMap { texture ImageTexture { url bumpmap_s3d.jpg }}
  98.         }
  99.  
  100.         geometry    PointSet {
  101.             pointSize 4
  102.           coord    Coordinate {
  103.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  104.           }
  105.           color    Color {
  106.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  107.           }
  108.         }
  109.     }
  110.     Shape {
  111.         appearance    MultiAppearance {
  112.           material    Material {
  113.             emissiveColor    1 1 1
  114.           }
  115.           diffuseMap DiffuseMap { texture ImageTexture { url diffuse_s3d.jpg }}
  116.           bumpLevelMap BumpLevelMap { texture ImageTexture { url bumpmap_s3d.jpg }}
  117.         }
  118.  
  119.         geometry    IndexedLineSet {
  120.             pointSize 4
  121.           coord    Coordinate {
  122.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  123.           }
  124.           coordIndex [ 0, 1, 2, 3, -2 ]
  125.           color    Color {
  126.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  127.           }
  128.           
  129.         }
  130.     }
  131.     ]
  132. }
  133.  
  134.